package com.letian.record.mapper;

import java.util.List;
import com.letian.record.domain.RecordDistance;

/**
 * 记录距离Mapper接口
 * 
 * @author bmz
 * @date 2023-01-15
 */
public interface RecordDistanceMapper 
{
    /**
     * 查询记录距离
     * 
     * @param distanceId 记录距离主键
     * @return 记录距离
     */
    public RecordDistance selectRecordDistanceByDistanceId(Long distanceId);

    /**
     * 查询记录距离列表
     * 
     * @param recordDistance 记录距离
     * @return 记录距离集合
     */
    public List<RecordDistance> selectRecordDistanceList(RecordDistance recordDistance);

    /**
     * 查询记录距离列表
     *
     * @param recordDistance 记录距离
     * @return 记录距离集合
     */
    public List<RecordDistance> selectRecordDistanceListToday(RecordDistance recordDistance);

    /**
     * 新增记录距离
     * 
     * @param recordDistance 记录距离
     * @return 结果
     */
    public int insertRecordDistance(RecordDistance recordDistance);

    /**
     * 修改记录距离
     * 
     * @param recordDistance 记录距离
     * @return 结果
     */
    public int updateRecordDistance(RecordDistance recordDistance);

    /**
     * 删除记录距离
     * 
     * @param distanceId 记录距离主键
     * @return 结果
     */
    public int deleteRecordDistanceByDistanceId(Long distanceId);

    /**
     * 批量删除记录距离
     * 
     * @param distanceIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRecordDistanceByDistanceIds(Long[] distanceIds);
}
